#pragma once
#include "Protocol.hpp"
class Task
{
public:
    Task() {}
    Task(int sock)
        : _sock(sock){}
    void ProcessOn()
    {
        _handler(_sock);
    }

private:
    CallBack _handler;
    int _sock;
};